package com.easybuy.dao.impl;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.easybuy.dao.AdminDao;
import com.easybuy.entity.Admin;

@Repository("adminDao")
public class AdminDaoImpl implements AdminDao {
	
	@Autowired
	private SqlSessionTemplate sqlSession;

	public Admin login(String username, String pwd) {
		return sqlSession.getMapper(AdminDao.class).login(username, pwd);
	}

}
